package com.ruoyi.recycle.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 首页轮播广告图片对象 home_page_slideshow
 *
 * @author Wubk
 * @date 2022-05-22
 */
@ApiModel("首页轮播广告图片")
@Data
@Accessors(chain = true)
public class HomePageSlideshow implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 租户号 */
    @ApiModelProperty(name = "id", value = "首页轮播广告图片id")
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(name = "name", value = "名称")
    private String name;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(name = "img", value = "图片")
    private String img;

    /** 类型 */
    @Excel(name = "类型")
    @ApiModelProperty(name = "type", value = "类型")
    private String type;

    /** 创建人 */
    @Excel(name = "创建人")
    @ApiModelProperty(name = "createdBy", value = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "createdTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    @ApiModelProperty(name = "updatedBy", value = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(name = "updatedTime", value = "更新时间")
    private Date updatedTime;
}
